package com.heritage.dto.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class HeritageResponse {
    private Long id;
    private String name;
    private String description;
    private String history;
    private String features;
    private String value;
    private String protection;
    private String image;
    private String level;
    
    // 分类信息
    private Long categoryId;
    private String categoryName;
    
    // 统计信息
    private int likes;
    private int comments;
    
    // 当前用户是否点赞
    private boolean liked;
    
    // 创建和更新时间
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    // 简化构造函数，用于列表展示
    public HeritageResponse(Long id, String name, String description, String image, 
                           Long categoryId, String categoryName, int likes, int comments, 
                           boolean liked) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.image = image;
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.likes = likes;
        this.comments = comments;
        this.liked = liked;
    }
}
